export const column = [
  {
    title: '',
    dataIndex: 'picture',
    key: 'picture',
    scopedSlots: { customRender: 'picture' },

  },
  {
    title: '商品名称',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '所属军区',
    dataIndex: 'area',
    key: 'area',
    scopedSlots: { customRender: 'area' },
  },
  {
    title: '所属门店',
    dataIndex: 'store',
    key: 'store',
    scopedSlots: { customRender: 'store' },
  },
  {
    title: '价格',
    dataIndex: 'price',
    key: 'price',
  },
  {
    title: '已销售量',
    dataIndex: 'sales',
    key: 'sales',
  },
  {
    title: '操作',
    dataIndex:'key',
    key:'key',
    scopedSlots: { customRender: 'key' }
  }
];
export const appendData = [
  {
    name:'商品类型',
    type:'tab',
    val:'1',
    must:true,
    place:'请输入名称',
    key:'event_type',
    selectData:[
      {name:'假发',id:'1',tit:'商品'},
      {name:'产品',id:'2',tit:'产品'}
    ]
  },
  {
    name:'商品分类',
    type:'cascader',
    val:[],
    must:true,
    place:'请选择分类',
    key:['cate_id','cate_sub_id'],
    selectData:[]
  },
  {
    name:'商品名称',
    type:'input',
    val:'',
    must:true,
    place:'请输入名称',
    key:'name',
  },
  {
    name:'商品主图',
    type:'upload',
    val:'',
    must:true,
    place:'请上传主图',
    key:'picture',
  },
  {
    name:'商品单位',
    type:'select',
    must:true,
    val:'',
    place:'请选择单位',
    key:'unit',
    idKey:'id',
    nameKey:'name',
    selectData:[
      {name:'个', id:1},
      {name:'只',id:2},
      {name:'件',id:3},
      {name:'g',id:4},
      {name:'kg',id:5},
      {name:'斤',id:6},
      {name:'袋',id:7},

    ],
  },
  {
    name:'商品库存',
    type:'input',
    val:'',
    must:true,
    place:'请输入库存',
    key:'stock',
  },
  {
    name:'商品价格',
    type:'input',
    val:'',
    must:true,
    place:'请输入价格',
    key:'price',
  },
  {
    name:'提成比例',
    type:'input',
    val:'',
    must:true,
    place:'请输入比例',
    key:'commission',
  },
  {
    name:'商品定金',
    type:'input',
    val:'',
    must:true,
    place:'请输入定金',
    key:'deposit',
  },
];
